package com.liushuai.phoneguardian.receiver;

import com.liushuai.phoneguardian.LostActivity;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class OutCallReceiver extends BroadcastReceiver {

	
	public void onReceive(Context context, Intent intent) {
		String phonennumber = getResultData();
		if("20142014".equals(phonennumber)){
			Log.i("", "20142014");
			Intent lostintent = new Intent(context,LostActivity.class);
			lostintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(lostintent);
			setResultData(null);
		}

	}

}
